package com.hgm.study.model.serice

import com.hgm.study.model.Network
import com.hgm.study.model.entity.Category
import com.hgm.study.model.entity.CategoryResponse
import com.hgm.study.model.entity.SwiperResponse
import retrofit2.http.GET

/**
 * @author    HGM
 * @version   1.0
 */
interface HomeService {

      @GET("category/list")
      suspend fun getCategory():CategoryResponse

      @GET("recommand/banner")
      suspend fun getBanner():SwiperResponse

      companion object{
            fun instance():HomeService{
                  return Network.createService(HomeService::class.java)
            }
      }

}